package com.xteam.youin_supplier.fragment;


import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;

import com.xteam.youin_supplier.MainActivity;
import com.xteam.youin_supplier.R;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.ViewById;

/**
 *清理缓存
 */
@EFragment(R.layout.fragment_clean_cache)
public class CleanCacheFragment extends BaseFragment {

    @ViewById(R.id.back_btn)
    ImageButton backBtn;

    @ViewById(R.id.toptitle_title)
    TextView topTitle;
    @AfterViews
    @Override
    void initView() {
        backBtn.setVisibility(View.VISIBLE);
        topTitle.setText(getResources().getString(R.string.clean_cache_title));
    }

    @Click(R.id.back_btn)
    @Override
    void Click(View view) {
        switch (view.getId()) {
            case R.id.back_btn:
                MainActivity.getInstance().getSupportFragmentManager().popBackStack();
                break;
        }
    }
}
